package com.gushenge.core.beans


import com.google.gson.annotations.SerializedName

data class CommunityBean(
    @SerializedName("code")
    val code: Int,
    @SerializedName("data")
    val `data`: Data,
    @SerializedName("message")
    val message: String
) {
    data class Data(
        @SerializedName("bgimg")
        val bgimg: String,
        @SerializedName("fenlei")
        val fenlei: ArrayList<Fenlei>,
        @SerializedName("guanzhu_num")
        val guanzhuNum: String,
        @SerializedName("icon")
        val icon: String,
        @SerializedName("is_guanzhu")
        val isGuanzhu: Boolean,
        @SerializedName("name")
        var name: String = "",
        @SerializedName("new_time")
        val newTime: String,
        @SerializedName("news")
        val news: ArrayList<New>
    ) {
        data class Fenlei(
            @SerializedName("name")
            val name: String,
            @SerializedName("type")
            val type: Int
        )

        data class New(
            @SerializedName("class_id")
            val classId: String,
            @SerializedName("id")
            val id: String,
            @SerializedName("title")
            val title: String,
            @SerializedName("type")
            val type: String = ""
        )
    }
}